package com.more.offer.designpatterns.unit1;

import java.util.HashMap;
import java.util.Map;

/**
 * @author pinoc
 * @date 2021/7/25
 * @description 棋盘
 */
public class ChessBoard {

	private Map<Integer, ChessPiece> chessPieceMap = new HashMap<>(16);

	public ChessBoard() {
		init();
	}

	public void init() {
		chessPieceMap.put(1, new ChessPiece(ChessPieceUnitFactory.getChessPieceUnit(1), 0, 0));
		chessPieceMap.put(1, new ChessPiece(ChessPieceUnitFactory.getChessPieceUnit(2), 1, 0));
		// ...
	}

}
